import request from "../../http";
const processSetApi = {
  async postProcessData(params) {
    return request({
      url: "/api/customControl",
      method: "post",
      data: params
    });
  },
  async getProcessData() {
    return request({
      url: "/api/customControl/dict",
      method: "get"
    });
  },
  async getTempData(query) {
    return request({
      url: "/api/customControl/temp",
      method: "get",
      params: query
    });
  },
  async queryTempData(query) {
    return request({
      url: "/api/customControl/temp",
      method: "get",
      params: query
    });
  },
  async disableProcess(params) {
    return request({
      url: "/api/customControl/disable",
      method: "put",
      data: params
    });
  }
};

export default processSetApi;
